package com.liuzh.deviceinfo.card;

import android.content.Context;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.cardview.widget.CardView;
import c.h.a.m0.k;
import com.liuzh.deviceinfo.DeviceInfoApp;

public class SystemOtherCard extends CardView {
    public SystemOtherCard(Context context, AttributeSet attributeSet) {
        CharSequence property;
        super(context, attributeSet);
        setUseCompatPadding(true);
        FrameLayout.inflate(getContext(), 2131492937, this);
        ((TextView) findViewById(2131296657)).setText(k.v());
        ((TextView) findViewById(2131296654)).setText(k.u());
        ((TextView) findViewById(2131296658)).setText(k.w());
        ((TextView) findViewById(2131296660)).setText(k.x());
        TextView textView = (TextView) findViewById(2131296659);
        try {
            property = System.getProperty("os.version");
            if (TextUtils.isEmpty(property)) {
                property = DeviceInfoApp.c.getString(2131690514);
            }
        } catch (Exception unused) {
            property = DeviceInfoApp.c.getString(2131690514);
        }
        textView.setText(property);
        ((TextView) findViewById(2131296770)).setText(k.B());
        ((TextView) findViewById(2131296867)).setText(k.a(getContext()));
        ((TextView) findViewById(2131296771)).setText(k.C());
    }
}
